<template>
    <a-drawer width="100%" :visible="isShow" :body-style="{ paddingBottom: '80px', background: '#f0f2f5' }"
        placement="right" :get-container="false"  :style="{ position: 'absolute'}"   :closable="false"
        :footer-style="{ textAlign: 'right' }" >
        <a-card class="mb-2 text-center">
            <a-row :gutter="24">
                <a-col :span="20">
                    <div class=" mb-2 text-left font-semibold  text-lg flex flex-row"
                        style="font-weight: 600;font-size: 16px;">
                        开票记录
                    </div>
                    <div class="flex flex-row">
                        <div class="w-32 ">
                            <div class="mb-2">项目编号</div>
                            <div style="font-weight: 600;">XMGL0001</div>
                        </div>
                        <div class="w-40 ">
                            <div class="mb-2">项目名称</div>
                            <div style="font-weight: 600;">杭州市道路施工项目</div>
                        </div>
                        <div class="w-40 ">
                            <div class="mb-2">开票金额</div>
                            <div style="font-weight: 600;">10000000.01</div>
                        </div>

                        <div class="w-32  ">
                            <div class="mb-2">申请人</div>
                            <div style="font-weight: 600;">李四</div>
                        </div>

                        <div class="w-32   ">
                            <div class="mb-2">开票日期</div>
                            <div style="font-weight: 600;">2024年2月16日</div>
                        </div>
                        <div class="w-32">
                            <div class="mb-2">所属部门</div>
                            <div style="font-weight: 600;">工程部</div>
                        </div>
                    </div>
                </a-col>
                <a-col :span="4" class="text-right">
                    <a-button @click="isShow = false">返回</a-button>
                </a-col>
            </a-row>
        </a-card>
        <a-card class="mb-2">

            <a-tabs >
                <a-tab-pane key="1" tab="详细信息">
                    <edit ref="editRef" :disabled="true"></edit>
                </a-tab-pane>
                <a-tab-pane key="2" tab="审核流程">
                    <taskInfo :id="info.processId">
                    </taskInfo>
                </a-tab-pane>
            </a-tabs>
        </a-card>

    </a-drawer>
</template>
<script setup >
import taskInfo from '@/components/Task/info.vue'
import edit from '@/views/flw/customform/finance/components/invoic/edit.vue'
const isShow = ref(false)
const editRef = ref();
const info = ref({})
const show = (record) => {
    isShow.value = true
    editRef.value.show(record)
    info.value = { ...record }
}
defineExpose({
    show
});


</script>
./edit2.vue